<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><sitemesh:write property='title' /></title>
    <link rel="stylesheet" href="/asset/layui/css/layui.css">
    <link rel="stylesheet" href="/asset/css/index.css?v=20190912">
    <link rel="stylesheet" href="/asset/css/common.css">
    <link rel="Shortcut Icon" href="cachet.ico">
    <script type="text/javascript" src="/asset/js/jquery-3.3.1.min.js"></script>
	<script src="/asset/layui/layui.js"></script>
    <script src="/asset/js/common.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo"><img src="/asset/images/logon.png" alt=""></div>

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item new_nav-item">
                <a href="javascript:;" class="new_a">
                    <img src="${_portrait!'/asset/images/portrait.png'}" class="layui-nav-img">${_loginName}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="/admin/personal/info.htm">账户信息</a></dd>
                    <dd><a href="/admin/personal/editPassword.htm">密码修改</a></dd>
                    <dd><a href="javascript:if(confirm('确定退出登录?')) location='/admin/logout.htm'">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
            	<#if Session["_menus"]?exists>
					<#list Session["_menus"] as item>
					<li class="layui-nav-item <#if _actions ==item.menuCode>layui-this</#if>">
						<#if item.actions??>
						<a class="${item.icon!''}" href="${item.actions}">${item.menuName}</a>
						<#else>
					 	<a class="${item.icon!''}" href="javascript:void(0);">${item.menuName}</a>
						</#if>
					</li>
					<#list item.childs as subs>
					<li class="layui-nav-item text-center <#if _actions ==subs.menuCode>layui-this</#if>"><a href="${subs.actions}">${subs.menuName}</a></li>
					</#list>
					</#list>	
				</#if>
				
				
				<!-- 
				 <li class="layui-nav-item layui-this"><a class="icon_index" href="/admin/index.htm">首页</a></li>
                <li class="layui-nav-item icon_tow">管理</li>
                <li class="layui-nav-item text-center"><a href="/admin/company/list.htm">公司管理</a></li>
               
                <li class="layui-nav-item text-center"><a href="/admin/agent/list.htm">代理管理</a></li>
                <li class="layui-nav-item text-center"><a href="/admin/devices/initList.htm">设备管理</a></li>
                
                <li class="layui-nav-item icon_four">系统</li>
                <li class="layui-nav-item text-center"><a href="/admin/operator/list.htm">管理员管理</a></li>
                <li class="layui-nav-item text-center"><a href="/admin/role/list.htm">角色管理</a></li>
                 <li class="layui-nav-item text-center"><a href="/admin/menu/index.htm">菜单管理</a></li>
                
                
                <li class="layui-nav-item icon_four">设置</li>
                <li class="layui-nav-item text-center"><a href="/admin/operator/info.htm">账户设置</a></li>
               -->
            </ul>
        </div>
    </div>

    <sitemesh:write property='body' />
    
    <div class="layui-footer">
        © 底部固定区域
    </div>
</div>

</body>
</html>